package com.example.restaurant.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.restaurant.entity.Chat;
import com.example.restaurant.entity.User;
import com.example.restaurant.mapper.ChatMapper;
import com.example.restaurant.service.ChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @BelongsProject: chat
 * @BelongsPackage: com.example.restaurant.service.impl
 * @Author: chenAng
 * @CreateTime: 2023-12-12  19:40
 * @Version: 1.0
 */
@Service
public class ChatServiceImpl extends ServiceImpl<ChatMapper, Chat>  implements ChatService{

    @Autowired
    private ChatMapper chatMapper;

    @Override
    public List<Chat> getOldChatList(User user) {
        return chatMapper.getOldChatList(user);
    }
}
